home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
comm
/
cnet
/
edp2days.lha
/
EDPTODShow.Rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-02-22
|
1KB
|
32 lines
/*EDPTODShow.Rexx version 1.0 by Edward Peyton */
/* Define these settings: */
log='Sysdata:edpalltoday.ctxt' /*Location and name of Log file for TODAY*/
lista='Access Group' /*Displaying Organization OR Access Group? */
num=15 /*Number of the last callers to show. */
strip="CNET:Tools/mastripper" /*Path to the MAStripper program (included) */
/* ----------------------------- */
options results
Signal on ERROR;signal on SYNTAX;signal on IOERR
file='Ram:syslast.txt'
Address Command strip "FROM sysdata:edpalltoday.ctxt TO ram:syslast.txt"
Say " Handle / Node # Calling From "lista " Pt BPS LogOn Calls"
Say " ---------------- --------------- ------------------------- - --- ------- -----"
call open(tod,file,r)
do i=1 to num
lst.i=readln(tod)
say lst.i
end
call close(tod)
address command "delete >nil:" file
Exit
SYNTAX:;ERROR:;IOERR:
e1=' c9Errorcf: ca'rc' cf(ca'errortext(rc)'cf)'
e2=' c9Linecf: ce'left(sigl,4)'c9Filecf:';getuser 1311992;a=result
getuser 1311960;b=result;c='cb"ce'a||b'cb"';e2=e2' 'c;tr e1;tr e2;logentry e1
logentry e2;e=sourceline(sigl);do while e~='';e3='c9Sourcecf: cd'
e3=e3||left(e,37);tr e3;logentry e3;e=substr(e,38);end;bufferflush;exit